package com.lomboardrisk.app.ee_new.web;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.apache.log4j.Logger;


/**
 * Utility Class to manipulate HttpServletResponse
 */
public class WebGuiResponseUtils {
	
		private static Logger log = Logger.getLogger(WebGuiResponseUtils.class);
	    /**
	     * send transfer bean for AJAX Request
	     * @param response
	     * @param flexEETransferBean
	     * @throws Exception
	     */
		
		public static void sendAJAXBean(HttpServletResponse response,AJAXTransferBean ajaxData) throws IOException{
			JSONObject jbItem = JSONObject.fromObject(ajaxData);
			response.getWriter().print(jbItem);
		}
	   
}
